﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Panel_InGame : BasePanel
{
    public override void OnEnter()
    {
        base.OnEnter();
        gameObject.SetActive(true);

    }
    public override void OnExit()
    {
        base.OnExit();
        gameObject.SetActive(false);

    }
    public override void OnPause()
    {
        base.OnPause();
    }
    public override void OnResume()
    {
        base.OnResume();
    }

    private void Update()
    {
        if (Input.GetButtonDown("Cancel"))
        {
            GameControl.instance.GameOver();
            UIManager.Instance.PopPanel();
        }
    }

}
